package com.community.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author TangHaoSong Fly ChenJie HeYuHang
 * @since 2024-05-15
 */
@TableName("product_type")
public class ProductType implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品类型id,主键,自增
     */
    @TableId(value = "type_id", type = IdType.AUTO)
    private Integer typeId;

    /**
     * 类型名称
     */
    private String typeName;

    /**
     * 父级id
     */
    private Integer parentId;

    /**
     * 类型级别,1表示一级分类,2表示二级分类
     */
    private Integer level;

    /**
     * 是否删除;C001-1:未删除,C001-2:已删除
     */
    private String status;

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "ProductType{" +
            "typeId = " + typeId +
            ", typeName = " + typeName +
            ", parentId = " + parentId +
            ", level = " + level +
            ", status = " + status +
        "}";
    }
}
